#include "point.h"
#include <stdlib.h>
#include <math.h>
#include "stdio.h"
struct Point
{
    double x;
    double y;
};

Point *makePoint(double x, double y) {
    Point *p = (Point *)malloc(sizeof(Point));
    p->x = x;
    p->y = y;
    return p;
}

double distance(Point *p1, Point*p2) {
    double dx = p1->x - p2->x;
    double dy = p1->y - p2->y;
    double result = dx * dx + dy * dy;
    printf("distance = %f \n", result);
    return sqrt(result);
}
